import request from '../utils/request';

export async function login({username, password}) {
  var form = new FormData;
  form.append('username', username);
  form.append('password', password);

  return request('/api/public/login', {
    method: 'post',
    body: form
  });
}
